package zface

import "net"

type IConnection interface {
	Start()

	Stop()

	GetTCPConn() *net.TCPConn

	GetConnID() uint32

	GetRemoteAddr() net.Addr

	Send(msgID uint32, data string) error
}

type HandleFunc func(conn *net.TCPConn, buf []byte, n int) error